import 'package:flutter/services.dart';

class FlutterWorldCup {
  static const EventChannel _eventChannel =
  EventChannel('com.example.world_cup/countries');

  static Stream<String> get countriesStream {
    return _eventChannel
        .receiveBroadcastStream()
        .map((dynamic event) => event as String);
  }
}